package PaperManagerGUI;

import java.awt.Graphics;

import javax.swing.JPanel;

public class DrawKnowledgeNode extends JPanel {
	private static final long serialVersionUID = 1L;
	private String KnowledgeName = null;
	private int row = 0;
	private int col = 0;
	public DrawKnowledgeNode(String knowledgeName,int x,int y){
		this.KnowledgeName = knowledgeName;
		this.row = x;
		this.col = y;
	}
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
		
		g.drawString(KnowledgeName,row,col);
		g.fillOval(row,col,30,30);
		//g.fillOval(6*x/5,8*y/5,3*x/5,3*y/5);
		
	}
}
